package com.baiyang.app.ui.register;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class RegisterViewModel extends ViewModel {

    private MutableLiveData<JSONObject> registerResult;

    public RegisterViewModel(){
        registerResult = new MutableLiveData<>();
    }

    public void setRegisterResult(JSONObject result){
        this.registerResult.postValue(result);
    }
    public LiveData<JSONObject> getRegisterResult(){
        return registerResult;
    }
}
